extends HoldMeleeWeapon


func process_hit():
	if hit_collision.disabled: return
	
	var areas = hit_area.get_overlapping_areas()
	if areas.size() <= 0: return
	
	for area in areas:
		var source = area.source
		if source not in hit_targets:
			hit_targets.append(source)
			
			if source is UnitBase:
				source = source as UnitBase
				
				var if_less_half_hp = source.unit_data.hp <= (source.unit_data.max_hp / 2.0)
				if if_less_half_hp:
					source.add_buff("buff_reaper_death", holder)
				else:
					source.take_hit(get_hit_data(), holder)
					
			else:
				source.take_hit(get_hit_data(), holder)
